//author:kakake
class tsreportController {
    public data = {
        dbConn: TSLobsterAPI.Program.GetDbConn(),
        WorkId: 1,
        AppId: 1
    }
    public hisinterface: tshisinterfaceController;
    public service: tsreportService;
    public dao: tsreportDao;

    constructor() {
        this.data.WorkId=TSLobsterAPI.Program.GetWorkId();


        this.hisinterface = new tshisinterfaceController(1);
        this.service = new tsreportService();
        this.dao = new tsreportDao(this.data.WorkId);

    }
    /**
     * 获取检验结果
     */
    getLisResult() {
        let CardType = TSLobsterAPI.Program.RequestQuery("CardType");
        let CardNum = TSLobsterAPI.Program.RequestQuery("CardNum");
        let StarDate = TSLobsterAPI.Program.RequestQuery("StarDate");
        let EndDate = TSLobsterAPI.Program.RequestQuery("EndDate");

        return this.hisinterface.getLisResultByCardNum(parseInt(CardType), CardNum, StarDate, EndDate);
    }

    /**
     * 获取检查结果
     */
    getPacsResult() {
        let CardType = TSLobsterAPI.Program.RequestQuery("CardType");
        let CardNum = TSLobsterAPI.Program.RequestQuery("CardNum");
        let StarDate = TSLobsterAPI.Program.RequestQuery("StarDate");
        let EndDate = TSLobsterAPI.Program.RequestQuery("EndDate");

        return this.hisinterface.getPacsResultByCardNum(parseInt(CardType), CardNum, StarDate, EndDate);
    }
}